package cn.tedu.antcolony.passport.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * CREATE TABLE ams_login_log
 * (
 *     id           bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '数据id',
 *     admin_id     bigint(20) unsigned DEFAULT NULL COMMENT '管理员id',
 *     username     varchar(50)         DEFAULT NULL COMMENT '管理员用户名（冗余）',
 *     nickname     varchar(50)         DEFAULT NULL COMMENT '管理员昵称（冗余）',
 *     ip           varchar(50)         DEFAULT NULL COMMENT '登录IP地址',
 *     user_agent   varchar(255)        DEFAULT NULL COMMENT '浏览器内核',
 *     gmt_login    datetime            DEFAULT NULL COMMENT '登录时间',
 *     gmt_create   datetime            DEFAULT NULL COMMENT '数据创建时间',
 *     gmt_modified datetime            DEFAULT NULL COMMENT '数据最后修改时间',
 *     PRIMARY KEY (id)
 * ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT ='管理员登录日志';
 */
//登录日志 实体类
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("ams_login_log")
public class AdminLoginLog implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private Long adminId;
    private String username;
    private String nickname;
    private String ip;
    private String userAgent;
    private LocalDateTime gmtLogin;
    private LocalDateTime gmtCreate;
    private LocalDateTime gmtModified;

}
